<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>

<script>
	function fn(obj){
		console.log(obj);
	}
</script>
<script>
	fn({a:1,b:2});
</script>
</html>